<script setup lang="ts">
    import {useAttrs} from "vue";
    const attrs = useAttrs();
</script>

<template>
    <h3>Child</h3>
    <p @click="attrs.onSuibian(attrs.num+1)">$attrs.num----->{{$attrs.num}}</p>
    <p>attrs.num----->{{attrs.num}}</p>
</template>

<style scoped>

</style>